package com.wd.tech.view.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.wd.tech.R;
import com.wd.tech.arc.LivenessActivity;

public class RenlianActivity extends AppCompatActivity {


    private Button b1;
    private Button b2;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_renlian);

        b1 = findViewById(R.id.b1);
        b2 = findViewById(R.id.b2);


        b1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                LivenessActivity.flag = 1;
                startActivity(new Intent(RenlianActivity.this, LivenessActivity.class));
            }
        });


        b2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                LivenessActivity.flag = 2;
                startActivity(new Intent(RenlianActivity.this, LivenessActivity.class));
            }
        });



    }
}
